<?php
declare(strict_types=1);

//sql练习与处理
Class c_sqls extends Control
{
    //sql语句练习
	public function index()
	{
		$sql = "SELECT a.*,b.image FROM (select * from member where name = 'sen') a
                LEFT JOIN info b on b.mid = a.id where a.id in (1,2)";
        $model = new Model();
        $res = $model->execute_sql($sql);
        echo '<pre>';print_r($res);die;
	}

}